﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:local="clr-namespace:EIA.SLClient.ProjectManage.Basic"
	xmlns:EIA_SLClient_Utility_Converters="clr-namespace:EIA.SLClient.Utility.Converters;assembly=EIA.SLClient.Utility"
	xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
	xmlns:EIA_SLClient_Utility_Behaviors="clr-namespace:EIA.SLClient.Utility.Behaviors;assembly=EIA.SLClient.Utility"
	mc:Ignorable="d"
	x:Class="EIA.SLClient.ProjectManage.Basic.ProjectInfoControl"
	d:DesignWidth="640" d:DesignHeight="480">
    <UserControl.Resources>
        <local:ProjectInfoControlViewModel x:Key="ProjectInfoControlViewModelDataSource"/>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource ProjectInfoControlViewModelDataSource}}">
		<Grid>
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto" MinHeight="36"/>
				<RowDefinition Height="Auto" MinHeight="36"/>
				<RowDefinition Height="Auto" MinHeight="36"/>
				<RowDefinition Height="Auto" MinHeight="36"/>
				<RowDefinition Height="Auto" MinHeight="36"/>
				<RowDefinition Height="Auto" MinHeight="36"/>
				<RowDefinition Height="Auto" MinHeight="36"/>
				<RowDefinition/>
			</Grid.RowDefinitions>
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="72"/>
				<ColumnDefinition Width="0.333*"/>
				<ColumnDefinition Width="72"/>
				<ColumnDefinition Width="0.335*"/>
				<ColumnDefinition Width="72"/>
				<ColumnDefinition Width="0.333*"/>
			</Grid.ColumnDefinitions>
			<TextBlock HorizontalAlignment="Right" Margin="0,0,5,0" TextWrapping="Wrap" Text="项目名称" VerticalAlignment="Center"/>
			<TextBlock HorizontalAlignment="Right" Margin="0,0,5,0" TextWrapping="Wrap" Text="项目类型" VerticalAlignment="Center" Grid.Row="1"/>
			<TextBlock HorizontalAlignment="Right" Margin="0,0,4,0" TextWrapping="Wrap" Text="项目所在地" VerticalAlignment="Center" Grid.Column="2" Grid.Row="1"/>
			<TextBlock HorizontalAlignment="Right" Margin="0,0,5,0" TextWrapping="Wrap" Text="项目审批部门" VerticalAlignment="Center" Grid.Row="1" Grid.Column="4"/>
			<TextBlock HorizontalAlignment="Right" Margin="0,0,5,0" TextWrapping="Wrap" Text="建设单位" Grid.Row="2" VerticalAlignment="Center"/>
			<TextBlock HorizontalAlignment="Right" Margin="0,0,5,0" TextWrapping="Wrap" Text="行业类型" VerticalAlignment="Center" Grid.Row="3"/>
			<TextBlock HorizontalAlignment="Right" Margin="0,0,4,0" TextWrapping="Wrap" Text="主持工程师" VerticalAlignment="Center" Grid.Row="3" Grid.Column="2"/>
			<TextBlock HorizontalAlignment="Right" Margin="0,0,5,0" TextWrapping="Wrap" Text="项目来源" VerticalAlignment="Center" Grid.Row="3" Grid.Column="4"/>
			<TextBlock HorizontalAlignment="Right" Margin="0,0,5,0" TextWrapping="Wrap" Text="联系人" VerticalAlignment="Center" Grid.Row="4"/>
			<TextBlock HorizontalAlignment="Right" Margin="0,0,4,0" TextWrapping="Wrap" Text="联系电话" VerticalAlignment="Center" Grid.Row="4" Grid.Column="2"/>
			<TextBlock HorizontalAlignment="Right" Margin="0,0,5,0" TextWrapping="Wrap" Text="协助单位" VerticalAlignment="Center" Grid.Row="5"/>
			<TextBlock HorizontalAlignment="Right" Margin="0,0,5,0" TextWrapping="Wrap" Text="协助费" VerticalAlignment="Center" Grid.Row="5" Grid.Column="4"/>
			<TextBlock HorizontalAlignment="Right" Margin="0,0,5,0" Grid.Row="6" TextWrapping="Wrap" Text="计划完成时间" VerticalAlignment="Center"/>
			<TextBlock HorizontalAlignment="Right" Margin="0,0,4,0" Grid.Row="6" TextWrapping="Wrap" Text="项目承接时间" VerticalAlignment="Center" Grid.Column="2"/>
			<TextBox Grid.ColumnSpan="5" Margin="0,0,8,0" TextWrapping="Wrap" Text="{Binding Model.PrjName, Mode=TwoWay}" VerticalAlignment="Center" Grid.Column="1" IsReadOnly="{Binding IsEditing, Converter={StaticResource BoolenRevertConverter}}"/>
			<ComboBox x:Name="cbo_xmlx" Margin="0,0,8,0" Grid.Row="1" VerticalAlignment="Center" Grid.Column="1" IsEnabled="{Binding IsEditing}" ItemsSource="{Binding XMLXCollection, Source={StaticResource ListsResource}}" DisplayMemberPath="DicIname" SelectedValuePath="DicIid" SelectedItem="{Binding XMLX, Mode=TwoWay}"/>
			<ComboBox x:Name="cbo_xmszd" Margin="0,0,8,0" Grid.Row="1" VerticalAlignment="Center" Grid.Column="3" IsEnabled="{Binding IsEditing}" ItemsSource="{Binding XMSZDCollection, Source={StaticResource ListsResource}}" DisplayMemberPath="DicIname" SelectedItem="{Binding XMSZD, Mode=TwoWay}"/>
			<ComboBox x:Name="cbo_xmspbm" Margin="0,0,8,0" Grid.Row="1" VerticalAlignment="Center" Grid.Column="5" IsEnabled="{Binding IsEditing}" ItemsSource="{Binding XMSPBMCollection, Source={StaticResource ListsResource}}" DisplayMemberPath="DicIname" SelectedItem="{Binding XMSPBM, Mode=TwoWay}"/>
			<TextBox Grid.ColumnSpan="3" Margin="0,0,8,0" TextWrapping="Wrap" Text="{Binding Model.PrjConsOrg, Mode=TwoWay}" VerticalAlignment="Center" Grid.Row="2" Grid.Column="1" IsReadOnly="{Binding IsEditing, Converter={StaticResource BoolenRevertConverter}}"/>
			<ComboBox x:Name="cbo_hylx" Margin="0,0,8,0" Grid.Row="3" VerticalAlignment="Center" Grid.Column="1" IsEnabled="{Binding IsEditing}" ItemsSource="{Binding HYLXCollection, Source={StaticResource ListsResource}}" DisplayMemberPath="DicIname" SelectedItem="{Binding HYLX, Mode=TwoWay}"/>
			<ComboBox x:Name="cbo_zcgcs" Margin="0,0,8,0" Grid.Row="3" VerticalAlignment="Center" Grid.Column="3" IsEnabled="{Binding IsEditing}" ItemsSource="{Binding EngineerCollection}" DisplayMemberPath="StfName" SelectedItem="{Binding SelectedEngineer, Mode=TwoWay}"/>
			<ComboBox x:Name="cbo_xmly" Margin="0,0,8,0" Grid.Row="3" VerticalAlignment="Center" Grid.Column="5" IsEnabled="{Binding IsEditing}" ItemsSource="{Binding XMLYCollection, Source={StaticResource ListsResource}}" DisplayMemberPath="DicIname" SelectedItem="{Binding XMLY, Mode=TwoWay}"/>
			<TextBox Margin="0,0,8,0" TextWrapping="Wrap" Text="{Binding Model.PrjContact, Mode=TwoWay}" VerticalAlignment="Center" Grid.Row="4" Grid.Column="1" IsReadOnly="{Binding IsEditing, Converter={StaticResource BoolenRevertConverter}}"/>
			<TextBox Margin="0,0,8,0" TextWrapping="Wrap" Text="{Binding Model.PrjContactTel, Mode=TwoWay}" VerticalAlignment="Center" Grid.Row="4" Grid.Column="3" IsReadOnly="{Binding IsEditing, Converter={StaticResource BoolenRevertConverter}}"/>
			<TextBox Grid.ColumnSpan="3" Margin="0,0,8,0" TextWrapping="Wrap" Text="{Binding Model.PrjCoopOrg, Mode=TwoWay}" VerticalAlignment="Center" Grid.Row="5" Grid.Column="1" IsReadOnly="{Binding IsEditing, Converter={StaticResource BoolenRevertConverter}}"/>
			<TextBox Margin="0,0,42,0" TextWrapping="Wrap" Text="{Binding Model.PrjCoopFee, Mode=TwoWay}" Grid.Row="5" Grid.Column="5" VerticalAlignment="Center" IsReadOnly="{Binding IsEditing, Converter={StaticResource BoolenRevertConverter}}"/>
			<TextBox Margin="0,0,8,0" TextWrapping="Wrap" Text="{Binding Model.PrjExpectDate, Mode=OneWay, StringFormat=yyyy-MM-dd}" Grid.Row="6" VerticalAlignment="Center" IsReadOnly="True" Grid.Column="1"/>
			<TextBox Margin="0,0,8,0" TextWrapping="Wrap" Text="{Binding Model.PrjBeginDate, Mode=TwoWay}" Grid.Row="6" VerticalAlignment="Center" Grid.Column="3" IsReadOnly="True"/>
			<TextBlock Grid.Column="5" HorizontalAlignment="Right" Margin="0,0,8,0" Grid.Row="5" TextWrapping="Wrap" Text="(万元)" d:LayoutOverrides="Height" VerticalAlignment="Center"/>
		</Grid>
	</Grid>
</UserControl>